"""project URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from user import api as user_api
from logs import api as logs_api
from link import api as link_api

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^user/create_user', user_api.create_user),
    url(r'^user/find_user', user_api.find_user),
    url(r'^user/del_user', user_api.delete_user),
    url(r'^user/update_user', user_api.delete_user),
    url(r'user/login', user_api.login),
    url(r'user/logout', user_api.logout),
    url(r'user/info', user_api.get_userInfo),

    url(r'^get_logs', logs_api.get_logs),
    url(r'^get_link_logs', logs_api.get_link_logs),
    url(r'^get_log_detail', logs_api.get_link_logs),

    url(r'^create_link', link_api.create_link),
    url(r'^delete_link', link_api.delete_link),
    url(r'^upload_excel', link_api.upload_excel),
    url(r'^get_link', link_api.get_link),
    url(r'^update_link', link_api.get_link),
    url(r'^run_link', link_api.run_all_links),
    url(r'^mobity_swith', link_api.update_link_switch),
    url(r'^allLinks', link_api.email_to_allLinks),
    
]
